package com.example.exceptions;


import com.example.result.MSG;

/**
 * 统一异常处理，统一封装
 * @Author: chen
 * @CreateTime: 2022-08-16
 * @Version: 1.0
 */
public class MyException {

    public static void display(MSG responseEnum) {
        throw new CustomException(responseEnum);
    }

    public static void display(MSG responseEnum, Object data) {
        throw new ParamsException(responseEnum, data);
    }

}
